﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CP.DBService
{
    public static class SequenceHelper
    {
        public static int GetSeqNextValue(string seqname)
        {
            DBHelper db = DBHelper.CreateInstance();
            return db.ExecuteScalar<int>(string.Format(@"select {0}.NextVal from dual", seqname));
        }
    }
}
